﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace FinallyVideoCaptureTest
{
    public class GeneratorPicRefInfo
    {
        public static string GeneratorFileName(DateTime dTime)
        {
            return string.Format("{0}-{1}-{2} {3}-{4}-{5} {6}.jpg",
                                 dTime.Year,
                                 dTime.Month,
                                 dTime.Day,
                                 dTime.Hour,
                                 dTime.Minute,
                                 dTime.Second,
                                 dTime.Millisecond);
        }

        private static string GetSavePathDirectory()
        {
            return Properties.Settings.Default.PicSaveDirect;
        }

        public static string GeneratorFileSavePath(string fileName)
        {
            return Path.Combine(GetSavePathDirectory(), fileName);
        }
    }
}
